# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
on boot

service ril-daemon /vendor/bin/hw/rild -c 1 -l /system/lib64/libsec-ril.so
    class main
    socket rild stream 660 root radio
    socket sap_uim_socket1 stream 660 bluetooth bluetooth
    socket rild-debug stream 660 radio system
    user radio
    group radio cache inet misc audio sdcard_r sdcard_rw log vpn system readproc wakelock
    capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
    onrestart restart cpboot-daemon

service ril-daemon1 /vendor/bin/hw/rild -c 2 -l /system/lib64/libsec-ril-dsds.so
    class main
    socket rild2 stream 660 system radio
    socket rild-debug2 stream 660 system radio
    user radio
    group radio cache inet misc audio sdcard_r sdcard_rw log vpn system readproc wakelock
    capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
    onrestart restart cpboot-daemon
    disabled

on property:persist.sys.cpboot=disable
    stop ril-daemon
    stop cpboot-daemon

on property:ro.multisim.simslotcount=2
    start ril-daemon1

on boot
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
    write /proc/sys/net/core/rmem_max 1048576
    write /proc/sys/net/core/wmem_max 2097152
